import help from '../../utils/help'
// 获取分类详情列表的数据
//枚举定义接口地址
enum API {
  GOODLIST = `cateList.json?`,
  CATELIST = `list.json?`
}
// __timestamp=1630131286110&categoryId=${categoryId}
export const reqGetCategoryList = (obj:any) => {
   return help.get(API.GOODLIST+`__timestamp=${obj.__timestamp}&categoryId=${obj.categoryId}`);
}
// timestamp=1630133942864&categoryType=0&subCategoryId=1008009&categoryId=1005000
export const  reqGetDetail = (obj:any)=>{
   return help.get(API.CATELIST+`categoryId=${obj.categoryId}&subCategoryId=${obj.subCategoryId}&categoryType=${obj.categoryType}`);
}